home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / std / c++ / 1001 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.7 KB

  1. Path: fido.asd.sgi.com!austern
  2. From: vandevod@cs.rpi.edu (David Vandevoorde)
  3. Newsgroups: comp.std.c++
  4. Subject: Re: sample auto_ptr template
  5. Date: 08 Apr 1996 10:15:07 PDT
  6. Organization: RPI Computer Science
  7. Approved: austern@isolde.mti.sgi.com
  8. Message-ID: <xsog2ahnixm.fsf@avs.cs.rpi.edu>
  9. References: <009A04DA6A831C40.49800EAC@ittpub.nl> <4jucle$i41@bmtlh10.bnr.ca>
  10.     <gregorDpFBCt.A5@netcom.com>
  11. NNTP-Posting-Host: isolde.mti.sgi.com
  12. X-Original-Date: 06 Apr 1996 17:25:57 -0400
  13. In-Reply-To: gregor@netcom.com's message of 06 Apr 1996 11:33:51 PST
  14. X-Newsreader: Gnus v5.1
  15. X-Auth: PGPMoose V1.1 PGP comp.std.c++
  16.     iQBVAwUBMWlJnEy4NqrwXLNJAQEbagH/c9AX4tkOIg7e9Htan+tJi4mEQ+1D1coZ
  17.     m+JYSc4dpyXRaEmUbAGEsJYI9eLZIqUAT/vz6Ca034oEQ8VqRHVLlw==
  18.     =Ohtf
  19. Originator: austern@isolde.mti.sgi.com
  20.  
  21. >>>>> "GC" == Greg Colvin <gregor@netcom.com> writes:
  22. [...]
  23. GC>    * Should auto_ptr have an operator-> ?  A proposal to add one was 
  24.      nearly accepted at Santa Cruz, but was withdrawn when the
  25.      prerequisite extension failed.
  26. [...]
  27.  
  28. I believe you meant to say `operator->*'.
  29.  
  30. The `extension' was to add a unary `operator->*' with essentially the
  31. same rules as `operator->()'; with the binary operator->*, it is not
  32. possible to provide a general mechanism equivalent to that of built-in
  33. pointers (you could only overload operator->* for pointer to member
  34. functions with a predetermined limit on the number of parameters).
  35.  
  36.     Daveed
  37. ---
  38. [ comp.std.c++ is moderated.  To submit articles: Try just posting with your 
  39.                 newsreader.  If that fails, use mailto:std-c++@ncar.ucar.edu
  40.   comp.std.c++ FAQ: http://reality.sgi.com/austern/std-c++/faq.html
  41.   Moderation policy: http://reality.sgi.com/austern/std-c++/policy.html
  42.   Comments? mailto:std-c++-request@ncar.ucar.edu 
  43. ]
  44.